-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add token support #16
Conversation
This is great! |
Codecov Report
@@ Coverage Diff @@
## main #16 +/- ##
==========================================
+ Coverage 90.62% 98.47% +7.85%
==========================================
Files 10 11 +1
Lines 320 328 +8
==========================================
+ Hits 290 323 +33
+ Misses 30 5 -25
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…ager classes and adds them to click instead
Would it be practical to remove the channel name + auth type from the |
Co-authored-by: Bianca Henderson <[email protected]>
I thought about doing this, but I think for now we should just let users edit this file themselves. A future feature request could be to remove the conda auth related settings for a channel when logging out. |
Suggested changes for token support (#16)
Fixes: #15
Important changes
conda_auth.handlers.token
moduleDescription
This adds support for token based authentication. It aims to support existing token based authentication with anaconda.org as well as adding support for other "bearer" compatible token authentication platforms (e.g. prefix.dev).
To add a token, run the following command:
This will trigger a new entry to be written to your
.condarc
file. It looks like this:On subsequent runs with conda, that configuration will be read and the correct token will be found via the keyring library.
To remove the token from the keyring, run: